package com.example.demo.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

@Mapper
public interface Message_OwnerMapper {
    @Select("select poi_id,destination from message_owner where message_id = #{message_id}")
    List<Map<String, Object>> getEmptyDistance(@Param("message_id") int message_id);

    @Select("select COUNT(*) from message_owner where message_id = #{message_id}")
    int getCar_num(@Param("message_id") int message_id);

    @Select("select * from message_owner where message_id = #{message_id}")
    List<Map<String, Object>> get_many(@Param("message_id") int message_id);
}
